export default {
    path: '/m.html',
        name: 'admin',
        component: resolve => require(['../views/admin/index.vue'], resolve),
        meta: {
        title: '管理中心',
            requireAuth: true,
            userType: 'admin'
    },
    children: [
        {
            path: '/m/center.html',
            name: 'admin-center',
            component: resolve => require(['../views/admin/center/index.vue'], resolve),
            meta: {
                title: '管理中心',
                requireAuth: true,
                userType: 'admin'
            }
        },
        {
            path: '/m/user/lists.html',
            name: 'admin-user-lists',
            component: resolve => require(['../views/admin/user/lists/index.vue'], resolve),
            meta: {
            title: '用户管理',
                requireAuth: true,
                userType: 'admin',
                search: 'user'
            }
        },
        {
            path: '/m/house-owner/lists.html',
            name: 'admin-room-lists',
            component: resolve => require(['../views/admin/m/index.vue'], resolve),
            meta: {
                title: '房主管理',
                requireAuth: true,
                userType: 'admin',
                search: 'user'
            }
        },
        {
            path: '/m/house-owner/details.html',
            name: 'admin-room-details',
            component: resolve => require(['../views/admin/m_details/index.vue'], resolve),
            meta: {
                title: '房主管理',
                requireAuth: true,
                userType: 'admin',
                search: 'user'
            }
        },
        {
            path: '/m/p.html',
            name: 'admin-p',
            component: resolve => require(['../views/user/upass/index.vue'], resolve),
            meta: {
                title: '修改密码',
                requireAuth: true,
                userType: 'room'
            }
        },
        {
            path: '/m/order.html',
            name: 'admin-order',
            component: resolve => require(['../views/admin/order/index.vue'], resolve),
            meta: {
                title: '下注记录',
                requireAuth: true,
                userType: 'room'
            }
        },
        // {
        //     path: '/m/room/owner.html',
        //         name: 'admin-room-owner',
        //     component: resolve => require(['../views/admin/r/owner/index.vue'], resolve),
        //     meta: {
        //     title: '房主管理',
        //         requireAuth: true,
        //         userType: 'admin',
        //         search: 'owner'
        //     }
        // },
        // {
        //     path: '/m/room/owner/details.html',
        //     name: 'admin-room-owner-details',
        //     component: resolve => require(['../views/admin/r/owner_details/index.vue'], resolve),
        //     meta: {
        //     title: '房主信息',
        //         requireAuth: true,
        //         userType: 'admin',
        //         search: false
        //     }
        // },
        // {
        //     path: '/m/room/create.html',
        //     name: 'admin-room-create',
        //     component: resolve => require(['../views/admin/r/create/index.vue'], resolve),
        //     meta: {
        //     title: '创建房间',
        //         requireAuth: true,
        //         userType: 'admin',
        //         search: false
        //     }
        // },
        // {
        //     path: '/m/room/lists.html',
        //     name: 'admin-room-lists',
        //     component: resolve => require(['../views/admin/r/lists/index.vue'], resolve),
        //     meta: {
        //     title: '房间列表',
        //         requireAuth: true,
        //         userType: 'admin',
        //         search: 'room'
        //     }
        // },
        // {
        //     path: '/m/room/details.html',
        //     name: 'admin-room-details',
        //     component: resolve => require(['../views/admin/r/details/index.vue'], resolve),
        //     meta: {
        //     title: '房间编辑',
        //         requireAuth: true,
        //         userType: 'admin',
        //         search: 'room'
        //     }
        // }
    ]
}